package com.snack.system.service.impl;

import com.snack.system.domain.TsReviewsReply;
import com.snack.system.mapper.TsReviewsReplyMapper;
import com.snack.system.service.ITsReviewsReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评价回复Service业务层处理
 * 
 * @author snack
 * @date 2022-09-18
 */
@Service
public class TsReviewsReplyServiceImpl implements ITsReviewsReplyService 
{
    @Autowired
    private TsReviewsReplyMapper reviewsReplyMapper;

    /**
     * 查询评价回复
     * 
     * @param reviewsReplyId 评价回复主键
     * @return 评价回复
     */
    @Override
    public TsReviewsReply selectById(Long reviewsReplyId)
    {
        return reviewsReplyMapper.selectById(reviewsReplyId);
    }

    /**
     * 查询评价回复列表
     * 
     * @param reviewsReply 评价回复
     * @return 评价回复
     */
    @Override
    public List<TsReviewsReply> selectList(TsReviewsReply reviewsReply)
    {
        return reviewsReplyMapper.selectList(reviewsReply);
    }

    /**
     * 新增评价回复
     * 
     * @param reviewsReply 评价回复
     * @return 结果
     */
    @Override
    public int insert(TsReviewsReply reviewsReply)
    {
        return reviewsReplyMapper.insert(reviewsReply);
    }

    /**
     * 修改评价回复
     * 
     * @param reviewsReply 评价回复
     * @return 结果
     */
    @Override
    public int update(TsReviewsReply reviewsReply)
    {
        return reviewsReplyMapper.update(reviewsReply);
    }

    /**
     * 批量删除评价回复
     * 
     * @param reviewsReplyIds 需要删除的评价回复主键
     * @return 结果
     */
    @Override
    public int deleteByIds(Long[] reviewsReplyIds)
    {
        return reviewsReplyMapper.deleteByIds(reviewsReplyIds);
    }

}
